/*
 * @Author: yuanming
 * @Date: 2024-08-23 10:30:25
 * @LastEditors: yuanming
 * @LastEditTime: 2024-09-11 13:39:52
 * @Description: fileDescription
 */
import service from '@/utils/request'
import { baseURL } from '@/utils/url'

/**
 * 共享单车 - 单车定位信息
 * @param {*} data
 * @returns
 */
export function nearbyBike(data) {
    return service({
        url: `${baseURL}/cloud-park-bike/bike/nearbyBikeTwo`,
        method: 'post',
        data,
    })
}
/**
 * 登录 - 需要密码进行访问
 * @param {*} data
 * @returns
 */
export function checkPassword(data) {
    return service({
        url: `${baseURL}/fly-park/bigScream/checkPassword`,
        method: 'POST',
        data,
    })
}
/**
 * 共享单车 - 街道点位信息
 * @param {*} data
 * @returns
 */
export function getBikeConfigList(data) {
    return service({
        url: `${baseURL}/cloud-park/bikeConfig/getBikeConfigList`,
        method: 'post',
        data,
    })
}
/**
 * 共享单车-街道共享单车流入流出变化趋势
 * @param {*} data
 * @returns
 */
export function getParkBikeTrend(data) {
    return service({
        url: `${baseURL}/cloud-park-bike/yuHua/bigData/getBikeCntTrend`,
        method: 'post',
        data,
    })
}
/**
 * 共享单车-非机动车泊位统计
 * @param {*} data
 * @returns
 */
export function getBikeConfigCount() {
    return service({
        url: `${baseURL}/cloud-park/bikeConfig/getBikeConfigCount`,
        method: 'get',
    })
}
/**
 * 获取公共备案停车场信息
 * @param {*} data
 * @returns
 */
export function getFilingPark() {
    return service({
        url: `${baseURL}/bigdata/webSocket/getFilingPark`,
        method: 'post',
    })
}
/**
 * 获取共享单车信息
 * @param {*} data
 * @returns
 */
export function getSharedBicycles() {
    return service({
        url: `${baseURL}/bigdata/webSocket/getSharedBicycles`,
        method: 'post',
    })
}
/**
 * 获取备案停车场监管信息
 * @param {*} data
 * @returns
 */
export function getFilingParkInfo() {
    return service({
        url: `${baseURL}/bigdata/webSocket/getFilingParkInfo`,
        method: 'post',
    })
}
/**
 * 获取泊位占用情况
 * @param {*} data
 * @returns
 */
export function getBerthOccupy() {
    return service({
        url: `${baseURL}/bigdata/webSocket/getBerthOccupy`,
        method: 'post',
    })
}